<?php
define('DEBUG',false);
define('DS',DIRECTORY_SEPARATOR);
define('SITE_PATH', dirname(__FILE__).DS);
include  SITE_PATH.'app/base.php';
$op = isset($_GET['op']) && trim($_GET['op']) ? trim($_GET['op']) : exit('Operation can not be empty');
if (!preg_match('/([^a-z_]+)/i',$op) && file_exists(SITE_PATH.'api/'.$op.'.php')) {
	include SITE_PATH.'api/'.$op.'.php';
} else {
	exit('API does not exist');
}